Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

detachInterrupt()

Examples
10000) {
    detachInterrupt(0);
  }
  delay(100);
}

void myFunction() {
  Serial.print("hello ");
}
Description It is possible to generate and attend external interrupts on the Wiring I/O board. There are 8 external interrupts, from 0 to 7 so there are 8 pins on the Wiring I/O board capable of external interrupts, 0, 1, 2, 3, 36, 37, 38, and 39 respectively. In addition to being regular digital pins, note that pins 0 and 1 are also used for the Wire library (TWI) and pins 2 and 3 are also the Serial1 serial port pins. The attachInterrupt() method sets the function that executes whenever an external interrupt is generated, and the detachInterrupt() method clears the function used to attend a specific interrupt.
Syntax
detachInterrupt(interrupt)
Parameters
interrupt The number of the external interrupt, from 0 to 7
Returns None
Usage Application
Related attachInterrupt()
interruptMode()
LOW
CHANGE
FALLING
RISING
Updated on November 01, 2009 11:40:03pm PST

Creative Commons License